﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class zh_psw : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        DataClassesDataContext a1 = new DataClassesDataContext();
        int? i;
        i = a1.select_answer(TextBox9.Text, DropDownList1.Text, TextBox7.Text);
        if (i == 1)
        {
            i = a1.select_answer(TextBox9.Text, DropDownList2.Text, TextBox8.Text);
            if (i == 1)
            {
                a1.update_psw(TextBox9.Text);
                Response.Write("<script>alert('密码已重置为“666666”！')</script>");
            }
        }
    }
    protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
}